import { http } from '@/utils/http/axios';

//开始课程
export function startCourse() {
  return http.request({
    url: '/course/exercise/screen/startCourse',
    method: 'get',
  });
}
//关闭课程
export function closeCourse() {
  return http.request({
    url: '/course/exercise/screen/closeCourse',
    method: 'put',
  });
}
//结束课程提交数据
export function finishCourseAndSubmitData(data) {
  return http.request({
    url: '/course/exercise/screen/finishCourse',
    method: 'post',
    data,
  });
}
